﻿
@page
@model AdminUI.Pages.BaseData.AlbumAddModel
@{
    var F = Html.F();
}

@section body{
    <f:Form ID="Form1" ShowBorder="false" ShowHeader="false" AutoScroll="true" BodyPadding="15" IsViewPort="true">
        <Rows>
            <f:FormRow ColumnWidths="100%">
                <Items>
                    <f:HiddenField ID="GoodsID" Text="@Model.GoodsID"></f:HiddenField>
                    <f:FileUpload ID="ImageUrl" Label="相册图片" EmptyText="请选择本地图片文件" AcceptFileTypes="image/*" ButtonIcon="Add"></f:FileUpload>
                </Items>
            </f:FormRow>
            <f:FormRow ColumnWidths="100%">
                <Items>
                    <f:NumberBox ID="SortFlag" Label="排序" EmptyText="" Text="0" MinValue="0" NoDecimal="true" ShowTrigger="false"></f:NumberBox>
                </Items>
            </f:FormRow>
            <f:FormRow ColumnWidths="100%">
                <Items>
                    <f:TextArea ID="Memo" EmptyText="请输入备注内容" Label="备注" AutoGrowHeight="true" AutoGrowHeightMin="100" AutoGrowHeightMax="200"></f:TextArea>
                </Items>
            </f:FormRow>
        </Rows>
        <Toolbars>
            <f:Toolbar ID="Toolbar1" Position="Top" ToolbarAlign="Left">
                <Items>
                    <f:Button ID="btnClose" Text="关闭" Icon="Cross" IconFont="Close" OnClientClick="F.activeWindow.hide();"></f:Button>
                    <f:Button ID="btnReset" Text="重置" Icon="ArrowUndo" OnClientClick="F.ui.Form1.reset();"></f:Button>
                    <f:Button ID="btnSubmit" Text="保存" Icon="SystemSave" OnClick="@Url.Handler("btnSubmit_Click")" _ValidateForms="Form1" OnClickFields="Form1"></f:Button>
                </Items>
            </f:Toolbar>
        </Toolbars>
    </f:Form>

    <f:Window ID="Window1" IsModal="true" Hidden="true" Target="Top" EnableResize="true" EnableMaximize="true" EnableIFrame="true" Width="400" Height="500">
        <Listeners>
            <f:Listener Event="close" Handler="onWindowClose('refresh');"></f:Listener>
        </Listeners>
    </f:Window>

}

@section head{
    <link rel="stylesheet" type="text/css" href="~/res/third-party/HTML5tooltips/css/tooltip.css">
}

@section script {
    <script type="text/javascript" src="~/res/third-party/HTML5tooltips/js/tooltip.js"></script>
    <script>
    
        F.ready(function(){
            //$('#Title').tooltip({
            //    text: '这是一个Tooltip！', fontSize: '12px',
            //    theme: 'light',
            //});
        });
    </script>
}
